<template>
  <div>
    <DeviceBorrowView :id.sync="editId"></DeviceBorrowView>
  </div>
</template>
<script>
const DeviceManage = import("@/ModuleDeviceManage");
export default {
  name: "AuditDeviceBorrowDialog",
  components: { DeviceBorrowView: DeviceManage.DeviceBorrowView },
  props: {

    editId: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {

      loading: true,
    };
  },
  watch: {

  },
  created() {

  },
  methods: {
    innerPass(obj) {
      DeviceManage.Api["DeviceBorrow"].verifyPass(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
    innerReject(obj) {
      DeviceManage.Api["DeviceBorrow"].verifyReject(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
    innerWithdraw(obj) {
      obj.auditStatus = 60;
      DeviceManage.Api["DeviceBorrow"].verifyReject(obj)
        .then((res) => {
          this.$emit("passOrNoPassEmit");
        })
        .catch();
    },
  },
};
</script>
<style scoped>
</style>
